import 'package:yysk_app/env/env.dart';

// URL 商城url
class MallUrl {
  static String baseUrl = Env.envConfig.envHttpUrl;
  static String mallHomePage =
      '$baseUrl/buyer/goods/goods/spu/es'; // 从ES中获取商品SPU维度信息 /buyer/passport/member
  static String mallUserInfo = '$baseUrl/buyer/passport/member'; //获取当前登录用户接口
  static String productDetailSku =
      '$baseUrl/buyer/goods/goods/sku'; // 首页商品sku详情=
  static String getUserBalance =
      '$baseUrl/buyer/member/consumptionCredit/getBalance'; //获取会员消费金余额
  static String getCouponsNum =
      '$baseUrl/buyer/promotion/coupon/getCouponsNum'; //获取当前会员可使用的优惠券数量
  static String getOrderList = '$baseUrl/buyer/order/order'; //查询会员订单列表
  static String queryOrderCount =
      '$baseUrl/buyer/order/order/queryOrderCount'; //查询订单数量
  static String getCashierPayToken =
      '$baseUrl/buyer/payment/cashier/getPayToken'; //获取支付令牌
  static String productBuy = '$baseUrl/buyer/trade/carts'; //购买p
  static String productChecked =
      '$baseUrl/buyer/trade/carts/checked'; // 获取结算页面购物车详情
  static String productPayOrder =
      '$baseUrl/buyer/trade/carts/create/trade'; // 商品创建交易
  static String productAddAddrList =
      '$baseUrl/buyer/member/address'; // 商品增加收货地址
  static String productChooseAdd =
      '$baseUrl/buyer/trade/carts/shippingAddress'; // 详情修改数据
  static String productDeleteAddress =
      '$baseUrl/buyer/member/address/delById'; // 商品删除地址
  static String productaddress =
      '$baseUrl/mall/common/common/region/item'; // 地址数据
  static String getAddressList = '$baseUrl/buyer/member/address'; //获取会员收件地址分页列表
  static String getCouponsList =
      '$baseUrl/buyer/promotion/coupon/getCoupons'; //获取当前会员的优惠券列表
  static String getPageRedeemCoupon =
      '$baseUrl/buyer/promotion/coupon/pageRedeemCoupon'; //获取兑换优惠券列表
  static String getCouponRedeemDetail =
      '$baseUrl/buyer/promotion/coupon/getCouponRedeemDetail'; //获取兑换信息
  static String redeemCoupon =
      '$baseUrl/buyer/promotion/coupon/redeemCoupon'; //兑换优惠券
  static String getConsumptionCreditList =
      '$baseUrl/buyer/member/consumptionCredit/getByPage'; //分页获取消费金记录
  static String getConsumptionCreditBalance =
      '$baseUrl/buyer/member/consumptionCredit/getBalance'; //获取会员消费金余额
  static String getStoreDeyail =
      '$baseUrl/buyer/store/store/get/detail'; //通过id获取店铺信息
  static String selectCoupon =
      '$baseUrl/buyer/trade/carts/select/coupon'; //选择优惠券
  static String selectConsumptionCredit =
      '$baseUrl/buyer/trade/carts/select/consumptionCredit'; //使用消费金
  static String getHotWords = '$baseUrl/buyer/goods/goods/hot-words'; //获取搜索热词
  static String getStoreDetail =
      '$baseUrl/buyer/store/store/get/detail'; //通过id获取店铺信息
  static String getStoreLabel =
      '$baseUrl/buyer/store/store/label/get'; //通过id获取店铺商品分类
  static String getGoodsCategoryList =
      '$baseUrl/buyer/goods/category/get'; //通过id获取首页商品分类
}
